//5：输出等腰空心三角形。高度自定义，图形三边由*组成，中间空白。
//从上往下空白的个数是0，1，2，3.。。
public class Task1 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("input height");
        int i, h = in.nextInt();
        for (i = 1; i < h; i++) {
            for (int j = h; j >= 0; j--) if (i <= j) System.out.print(" ");
            for (int k = 1; k <= 2 * i - 1; k++) {
                if (k == 1 || k == 2 * i - 1) System.out.print("*");
                else System.out.print(" ");
            }
            System.out.println("");
        }
        System.out.print(" ");
        for (int l = 1; l <= 2 * i - 1; l++) System.out.print("*");
    }
}